//账单记录
$(function(){
		var token=sessionStorage.getItem("token");
		var method ="get_allincome";
		var pagesize="6";
                var mid=$(".xq").attr("data-id");
                 var p=1;
                xqMore();
                $(".More").click(function(){
                        p+=1;
                        $(this).attr("disabled","disabled");
                        setTimeout(function(){
                                $(".More").removeAttr("disabled");
                        },2000);
                        xqMore(p);
                })
      
               
	
	function xqMore(p){
		if(!p){
			p=1;
		}
		var d={};
		d.token=token;
		d.method=method;
		d.p=p;
		d.pagesize=pagesize;
                d.type="2";
		$.ajax({
			type:"post",
			url:"http://www.rice.com/app/api/h5_access",
			data:d,
			dataType:"json",
			success:function(result){
				if(result.status=="1"){
					var data=result.data.res;
					var sttr=$(".xq").html();
					for(var i in data){
						sttr+='<div class="mx"><div id="'+data[i].order_id+'"><span>手 机 号：</span><span id="mer_order_no">'+data[i].phone+'</span></div>';
						sttr+='<div><span>操作方式：</span><span id="channel">'+data[i].type+'</span></div>';
						sttr+='<div><span>订单时间：</span><span id="add_time">'+data[i].add_time+'</span></div>';
						sttr+='<div><span>申请金额：</span><span id="amount">'+data[i].money+'</span></div></div>';
					}
					$(".xq").html(sttr);
				}else if(result.status=="2"){
                                    alert(result.message);
                                    location.href="login.html";
                                }else{
                                    alert(result.message);
                                }
			}
		});
	}
	
})
